package Strategy.Demo.Ducks;

import Strategy.Demo.Interfaces.Duck;
import Strategy.Demo.InterfacesImpl.CanNotFly;
import Strategy.Demo.InterfacesImpl.Quack;

/**
 * @Author: pengzx
 * @Description:
 * @Date: 11:30 2017/9/5
 * @Modified by: 1.0
 */
public class SuLiaoDuck extends Duck {
    public SuLiaoDuck()
    {
        fly = new CanNotFly();
        duckQuack = new Quack();
    }

    @Override
    public void display()
    {
        System.out.println("塑料鸭子！");
    }
}
